package com.ruoyi.project.system.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 分类对象 sys_category
 *
 * @author theme
 * @date 2020-06-23
 */
public class SysCategory extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long categoryId;

    /**
     * 商品名称
     */
    @ApiModelProperty(name = "商品名称")
    private String name;

    /**
     * 商品简介
     */
    @ApiModelProperty(name = "商品简介")
    private String detail;

    /**
     * 是否上架
     */
    @ApiModelProperty(name = "是否上架")
    private String img;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(name = "是否上架")
    private Long sort;

    /**
     * 商品单位，例如件、盒
     */
    @ApiModelProperty(name = "商品单位，例如件、盒")
    private Long parentId;

    /**
     * $column.columnComment
     */
    private String delFlag;

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getDetail() {
        return detail;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getImg() {
        return img;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Long getSort() {
        return sort;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("categoryId", getCategoryId())
                .append("name", getName())
                .append("detail", getDetail())
                .append("img", getImg())
                .append("sort", getSort())
                .append("parentId", getParentId())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
